from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from know.login import views

urlpatterns = [
    # url(r'^product_list/$', views.ProductListView.as_view(), name='product-list'),
    url(r'^user/login/$', views.Login.as_view(), name='login'),
    url(r'^user/upsert/$', views.CreateUser.as_view(), name='create-user'),
    url(r'^user/list/$', views.UserList.as_view(), name='user-list'),
    url(r'^user/delete/$', views.DeleteUser.as_view(), name='delete-user'),
]

urlpatterns = format_suffix_patterns(urlpatterns)